package com.sugar.subscribe.course.module.business.dal.dataobject.withdrawrecord;

import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import com.sugar.subscribe.course.framework.mybatis.core.dataobject.BaseDO;

/**
 * 提现记录 DO
 *
 * @author Ysugar
 */
@TableName("business_withdraw_record")
@KeySequence("business_withdraw_record_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WithdrawRecordDO extends BaseDO {

    /**
     * ID
     */
    @TableId
    private Long id;
    /**
     * 教练ID
     */
    private Long coachId;
    /**
     * 提现金额（单位分）
     */
    private Integer amount;
    /**
     * 提现状态：[0待审核；1审核通过；2已到账；3审核拒绝；4提现失败]
     */
    private Integer status;
    /**
     * 失败/拒绝原因
     */
    private String failCause;
    /**
     * 提现到账时间
     */
    private LocalDateTime doneTime;
    /**
     * 转账单编号
     */
    private Long payTransferId;
}
